package com.qmx.smedicinebox.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmx.smedicinebox.sys.entity.MedicationSituationEntity;
import com.qmx.smedicinebox.sys.entity.MedicineEntity;
import com.qmx.smedicinebox.utils.PageUtils;
import com.qmx.smedicinebox.utils.R;
import com.qmx.smedicinebox.vo.MedicationSituationVo;

import java.util.Map;

/**
 * 用药情况表
 *
 * @author xiaozhiyong
 * @email xiaozhiyong03@gmail.com
 * @date 2024-03-26 20:55:57
 */
public interface MedicationSituationService extends IService<MedicationSituationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R medicationSituationList(Integer userId, String date);

    R save(MedicationSituationVo medicationSituationVo);

//    boolean insertNewRecord(Integer deviceId, String link);

    void insertNewRecord(Integer integer, String link, MedicineEntity medicine);

    boolean determineSave(Integer medicine);
}

